<!-- application/layouts/scripts/layout.phtml -->
<?php echo $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>LogisticWay</title>
        <?php $this->headLink()->prependStylesheet('/css/theme-1.css'); ?>
        <?php $this->headLink()->prependStylesheet('/css/jquery.fancybox-1.3.4.css'); ?>
        <?php $this->headLink()->prependStylesheet('/css/screen.css'); ?>
        <?php $this->headScript()->prependFile('/js/superfish.js'); ?>
        <?php $this->headScript()->prependFile('/js/twitter.min.js'); ?>
        <?php $this->headScript()->prependFile('/js/jquery.fancybox-1.3.4.pack.js'); ?>
        <?php $this->headScript()->prependFile('/js/jquery.validate.min.js'); ?>
        <?php $this->headScript()->prependFile('/js/jquery.scrollTo-1.4.2-min.js'); ?>
        <?php $this->headScript()->prependFile('/js/styleswitcher.js'); ?>
        <?php $this->headScript()->prependFile('/js/onload.js'); ?>
        <?php $this->headScript()->prependFile('http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js'); ?>
        <?php echo $this->headLink(); ?>
        <?php echo $this->headScript(); ?>
    </head>
    <body id="home">
    <header>
        <div id="header-inner">
            <!-- The name of your website -->
            <a href="http://logisticway.com/" class="logo">Logisticway</a>

            <!-- Main navigation -->
            <nav>
                <ul>
                    <li><a href="http://logisticway.com/">Home</a></li>
                    <li><a href="pricing.html">Pricing</a></li>
                    <li><a href="styling.html">Features</a>
                        <ul>
                            <li><a href="styling.html"><img src="img/navi-01.png" alt="" /> Logistics <span>For transportation companies</span></a></li>
                            <li><a href="styling.html"><img src="img/navi-02.png" alt="" /> Travel <span>For business trips and vacation</span></a></li>
                        </ul>
                    </li>
                    <li><a href="#">GPS navigation</a></li>
                    <li><a href="#">Our partners</a></li>
                    <li><a href="contact.html">Contact</a></li>
                </ul>
            </nav>
            <!-- Secondary navigation -->
            <ul id="sec-navi">
                <?php
                //���� ������������ �������������
                if (Zend_Auth::getInstance()->hasIdentity()) {
                    //������
                    $url = $this->url(array('controller' => 'auth', 'action' => 'logout'));
                    echo "<li><a href=\"{$url}\">Exit</a></li>";
                    //������ �������
                    echo "<li><a href=" . $this->url(array('controller' => 'profile', 'action' => 'index')) . ">Profile</a></li>";
                    echo "<li><a href=" . $this->url(array('controller' => 'routes', 'action' => 'index')) . ">Routes</a></li>";
                }
                //����� ����� "�����������" & "�����������"
                else {
                    echo '<li><a href="' . $this->url(array('controller' => 'auth', 'action' => 'index')) . '">Auth</a></li>';
                    echo '<li><a class="register" href="' . $this->url(array('controller' => 'registration', 'action' => 'index')) . '">Register</a></li>';
                }

                //���� ������������ ����� - ������ �� �������
                if ($this->role == 'admin') {
                    echo "<li><a href=" . $this->url(array('controller' => 'admin', 'action' => 'index')) . ">Administration</a></li>";
                } else {
                    echo "<li><a href=" . $this->url(array('controller' => 'admin', 'action' => 'index')) . ">do not click</a></li>";
                }
                ?>
            </ul>
        </div><!-- /header-inner -->
    </header>
    <div id="slidermain">
         <?php echo $this->placeholder('slidermain'); ?>
    </div>
   
    <!--/wrapper -->
    <?php
                $container = new Zend_Navigation();
                $this->navigation($container);

                $container->addPage(
                        //INDEX
                        array(
                            'label' => 'Index',
                            'controller' => 'index',
                            'action' => 'index',
                            'pages' =>
                            array(
                                //MARKERS index
                                array(
                                    'label' => 'Markers',
                                    'controller' => 'markers',
                                    'action' => 'index',
                                    'pages' =>
                                    array(
                                        //MARKERS add
                                        array(
                                            'label' => 'Add markers',
                                            'controller' => 'markers',
                                            'action' => 'addmarker'
                                        ),
                                        //MARKERS add category
                                        array(
                                            'label' => 'Add category',
                                            'controller' => 'markers',
                                            'action' => 'addcategory'
                                        )
                                    )
                                ),
                                //RATES index
                                array(
                                    'label' => 'Rates',
                                    'controller' => 'rates',
                                    'action' => 'index',
                                    'pages' =>
                                    array(
                                        //RATES add
                                        array(
                                            'label' => 'Add rate',
                                            'controller' => 'rates',
                                            'action' => 'add'
                                        ),
                                        array(
                                            'label' => 'Update rate',
                                            'controller' => 'rates',
                                            'action' => 'update'
                                        )
                                    )
                                ),
                                //AUTHORIZATION
                                array(
                                    'label' => 'Authorization',
                                    'controller' => 'auth',
                                    'action' => 'login'
                                ),
                                //REGISTRATION
                                array(
                                    'label' => 'Registration',
                                    'controller' => 'registration',
                                    'action' => 'registration'
                                ),
                                //ADMIN index
                                array(
                                    'label' => 'Admin',
                                    'controller' => 'admin',
                                    'action' => 'index',
                                    'pages' =>
                                    array(
                                        //ADMIN show
                                        array(
                                            'label' => 'Show',
                                            'controller' => 'admin',
                                            'action' => 'show'
                                        ),
                                        //ADMIN update
                                        array(
                                            'label' => 'Update',
                                            'controller' => 'admin',
                                            'action' => 'update'
                                        ),
                                        //ADMIN adduser
                                        array(
                                            'label' => 'Add',
                                            'controller' => 'admin',
                                            'action' => 'add'
                                        ),
                                        //ADMIN add balance
                                        array(
                                            'label' => 'Add status',
                                            'controller' => 'admin',
                                            'action' => 'addstatus'
                                        ),
                                        //Transactions
                                        array(
                                            'label' => 'Transactions',
                                            'controller' => 'admin',
                                            'action' => 'transactions'
                                        ),
                                        //Requisites
                                        array(
                                            'label' => 'Requisites',
                                            'controller' => 'requisites',
                                            'action' => 'updaterequisaction'
                                        )
                                    )
                                ),
                                //PROFILE
                                array(
                                    'label' => 'Profile',
                                    'controller' => 'profile',
                                    'action' => 'index',
                                    'pages' =>
                                    array(
                                        //PROFILE update
                                        array(
                                            'label' => 'Update',
                                            'controller' => 'profile',
                                            'action' => 'update'
                                        ),
                                        //SAVED routes
                                        array(
                                            'label' => 'Saved routes',
                                            'controller' => 'routes',
                                            'action' => 'saveroutes'
                                        ),
                                        //PROFILE addbalance
                                        array(
                                            'label' => 'Add status',
                                            'controller' => 'profile',
                                            'action' => 'addstatus'
                                        )
                                    )
                                )
                            )
                        )
                ); ?>
                <div id="pageHeader">
                    <div class="wrapper">
                        <p id="breadcrumbs">
                            <?php echo $this->navigation()->breadcrumbs()->setLinkLast(false)->setMinDepth(0)->render(); ?>
                        </p>
                    </div>

                </div>

                <div class="content">
<?php echo $this->layout()->content ?>
    </div>
    <footer>
        <div class="wrapper">
            <div class="one-third">
                <center><h3>About</h3></center>

                <p>We are an innovative and vastly developing company. We are engaged in web development and financial services.</p>

                <ul>
                    <li>21 Brompton Road, London, United Kingdom</li>
                    <li>Tel: +44 20 3286 1827</li>
                    <li>Fax: +44 20 3286 1828</li>
                    <li><a href="mailto:">E-mail: info@logisticway.com</a></li>
                </ul>

                <ul id="social">
                    <li><a href="#" id="dribbble">Dribbble</a></li>
                    <li><a href="#" id="facebook">Facebook</a></li>
                    <li><a href="#" id="flickr">Flickr</a></li>
                    <li><a href="#" id="twitter">Twitter</a></li>
                    <li><a href="#" id="rss">RSS</a></li>
                </ul>
            </div>

            <div class="one-third">
                <center>
                    <h3>Information</h3>
                    <ul>
                        <li><a href="#">Pricing</a></li>
                        <li><a href="#">Features</a></li>
                        <li><a href="#">GPS navigation</a></li>
                        <li><a href="#">Our partners</a></li>
                        <li><a href="#">Terms and conditions</a></li>
                        <li><a href="#">Privacy policy</a></li>
                        <li><a href="#">Contact</a></li>
                    </ul>
                </center>
            </div>

            <div class="one-third last">
                <center><h3>Payment types</h3></center>
                <p>We can assept only limited number of payment types stated below:</p>
                <center>
                    <img src="img/webmoney.png" width=82 alt="webmoney" />
                    <img src="img/bank.png" width=92 alt="bank transfer" />
                    <br />
                    <p>&nbsp; Webmoney &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Bank transfer</p>
                </center>
            </div>
        </div><!-- /wrapper -->
    </footer>
</body>
</html>